<%@page import="com.antexpress.common.Const"%>
<%@page import="com.antexpress.pojo.Employee"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <%
        Employee emp = (Employee)session.getAttribute(Const.CURRENT_USER);
        if(emp == null){return;}
    %>
    <div class="home-header">
        <div class="container">
            <div id="header-logo">
                <a href="index.jsp" title="Home page -- Ant Express">
                    <img src="static/img/logo.png" style="height: 50px; margin-top: 5px;"/>
                </a>
            </div>
            <div id="header-profile">
                <div id="header-empname">
                    <%
                        if(emp.getGender().equals("m"))
                            out.println("<img id='head-avatar' src='static/img/user_m.png'/>");
                        else
                            out.println("<img id='head-avatar' src='static/img/user_f.png'/>");
                    %>
                    <span id="head-empname-name">Hello, <%=emp.getName()%>!</span>
                </div>
                <input id="bt-logout" class="btn btn-default" type="button" value="Logout"/>
            </div>
        </div>
    </div>
</html>
